import { createStore } from "vuex";
export interface RootState {
  list: string[],
  flag: boolean
}


export default createStore<RootState>({
  state: {
    list: ["a", "b", "c"],
    flag: true
  },
  getters: {},
  mutations: {
    addList(state, payload) {
      // console.log(payload);
      state.list.push(payload)
    }
  },
  actions: {},
  modules: {},
});
